package com.iss.demo.service;

import com.iss.demo.dao.SaleMoneyDao;
import com.iss.demo.entity.SaleMoney;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
@Service
public class SaleMoneyService {
    @Autowired
    private SaleMoneyDao dao;
    public List<SaleMoney> selectAll(){
        List<SaleMoney> list = new ArrayList<>();
        list = dao.selectAll();
        return list;
    }
    public Integer update(SaleMoney saleMoney){
        return dao.update(saleMoney);

    }

    public SaleMoney selectById(Integer s_id){
        return dao.selectById(s_id);
    }

}
